package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("staff_arrangement")
public class StaffArrangement extends Model<StaffArrangement> implements Serializable {


    /**
     * 员工排班ID
     */
    @TableId(value = "staff_arrangement_id", type = IdType.AUTO)
    private Integer staffArrangementId;

    /**
     * 排班人
     */
    @TableField("arrange_id")
    private Integer arrangeId;

    @TableField(exist = false)
    private Staff arrangeStaff;

    /**
     * 部门
     */
    @TableField("staff_arrangement_department_id")
    private Integer staffArrangementDepartmentId;

    @TableField(exist = false)
    private Department department;

    /**
     * 资源ID
     */
    @TableField("staff_arrangement_resource_id")
    private Integer staffArrangementResourceId;

    @TableField(exist = false)
    private Resource resource;

    public Staff getArrangeStaff() {
        return arrangeStaff;
    }

    public StaffArrangement setArrangeStaff(Staff arrangeStaff) {
        this.arrangeStaff = arrangeStaff;
        return this;
    }

    public Department getDepartment() {
        return department;
    }

    public StaffArrangement setDepartment(Department department) {
        this.department = department;
        return this;
    }

    public Resource getResource() {
        return resource;
    }

    public StaffArrangement setResource(Resource resource) {
        this.resource = resource;
        return this;
    }

    public Integer getStaffArrangementId() {
        return staffArrangementId;
    }

    public StaffArrangement setStaffArrangementId(Integer staffArrangementId) {
        this.staffArrangementId = staffArrangementId;
        return this;
    }

    public Integer getArrangeId() {
        return arrangeId;
    }

    public StaffArrangement setArrangeId(Integer arrangeId) {
        this.arrangeId = arrangeId;
        return this;
    }

    public Integer getStaffArrangementDepartmentId() {
        return staffArrangementDepartmentId;
    }

    public StaffArrangement setStaffArrangementDepartmentId(Integer staffArrangementDepartmentId) {
        this.staffArrangementDepartmentId = staffArrangementDepartmentId;
        return this;
    }

    public Integer getStaffArrangementResourceId() {
        return staffArrangementResourceId;
    }

    public StaffArrangement setStaffArrangementResourceId(Integer staffArrangementResourceId) {
        this.staffArrangementResourceId = staffArrangementResourceId;
        return this;
    }

    @Override
    public String toString() {
        return "StaffArrangement{" +
                "staffArrangementId=" + staffArrangementId +
                ", arrangeId=" + arrangeId +
                ", staffArrangementDepartmentId=" + staffArrangementDepartmentId +
                ", staffArrangementResourceId=" + staffArrangementResourceId +
                "}";
    }
}
